package com.app.model;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_person_position")
@JsonInclude(JsonInclude.Include.NON_NULL)

public class PersonPositionModel {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer personId;//人员ID 对应person表
    private Integer departmentId;//单位ID  对应部门表

    @Excel(name = "职务", orderNum = "1")
    private String position;//职位名称

    private Integer IsMajor;//是否主职 1是0否

    private Timestamp createTime;
    private Timestamp updateTime;

    @TableField(exist = false)
    @Excel(name = "单位", orderNum ="0")
    private String depName;//部门名字字段

    @TableField(exist = false)
    @Excel(name = "是否主职", orderNum = "2")
    private String isMajorText;//1是0否
}
